<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <script src="js/jquery-3.3.1.js"></script>
    <style>
    #test{
        width: 100px;height: 100px;
        background: skyblue;
    }
        </style>
</head>
<body>
    <div id="test">

    </div>
    <button id="hidden">hidden</button>
    <button id="show">show</button>
    <button id="toggle">toggle</button>
    <script>
    $(function(){
        $("#hidden").click(function(){
            $("#test").hide(1000);
        })
        $("#show").click(()=>{
            $("#test").show(1000);
        })
        $("#toggle").click(()=>{
            $("#test").hide(1000).show(1000);
        })
    })
    </script>
</body>
</html>